package com.woniuxy.usercoachassemble.service;

import com.woniuxy.usercoachassemble.commons.ToData;
import com.woniuxy.usercoachassemble.entity.YogaGymSignedCoach;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2020-07-18
 */
public interface YogaGymSignedCoachService extends IService<YogaGymSignedCoach> {

    /**
     * @description:TODO(分页查询场馆签约教练详情)
     * @param gymId 场馆id
     * @param status 签约教练的状态
     * @param current 当前页
     * @param size  每页大小
     * @return:  com.woniuxy.usercoachassemble.commons.ToData
     * @author: Fy浪迹、
     * @date: 2020/7/18 19:37
     */
    ToData selectSignContractCoachByGymId(Integer gymId, Integer status, Long current, Long size);

    /**
     * @description:TODO(根据场馆id 以及教练id查询签约信息)
     * @param gymId 场馆id
     * @param coachId 教练id
     * @return:  com.woniuxy.usercoachassemble.entity.YogaGymSignedCoach
     * @author: Fy浪迹、
     * @date: 2020/7/18 20:09
     */
    YogaGymSignedCoach selectByCoachIdAndGymId(Integer gymId, Integer coachId);

    /**
     * @description:TODO(根据教练id修改签约状态)
     * @param coachId 教练id
     * @param status
     * @return:  boolean
     * @author: Fy浪迹、
     * @date: 2020/7/18 20:25
     */
    boolean updataStatus(Integer coachId, Integer status);

    /**
     * @description:TODO(新增签约信息)
     * @param gymId
     * @param coachId
     * @param status
     * @return:  boolean
     * @author: Fy浪迹、
     * @date: 2020/7/18 21:05
     */
    boolean insetByGymIdAndCoachId(Integer gymId, Integer coachId, Integer status);


    List<Map<String,Object>> getCoachByUserId(int userId);

    List<Map<String,Object>> getCoachByCoach(int coachId);
    List<Map<String,Object>> getTimeByCoach(int coachId);
    public List<Map<String, Object>> selectCoach(int selectCoach);
}
